package com.yidu.best.systemManagement.Authority.domain;

public class AuthorityUserRole {
	private String user_roleId;
	private String roleId;
	private String userId;
	private String roleName;
	private String userName;
	
	public AuthorityUserRole() {
	}

	public AuthorityUserRole(String user_roleId, String roleId, String userId, String roleName, String userName) {
		super();
		this.user_roleId = user_roleId;
		this.roleId = roleId;
		this.userId = userId;
		this.roleName = roleName;
		this.userName = userName;
	}

	@Override
	public String toString() {
		return "AuthorityUserRole [user_roleId=" + user_roleId + ", roleId=" + roleId + ", userId=" + userId
				+ ", roleName=" + roleName + ", userName=" + userName + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
		result = prime * result + ((roleName == null) ? 0 : roleName.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		result = prime * result + ((userName == null) ? 0 : userName.hashCode());
		result = prime * result + ((user_roleId == null) ? 0 : user_roleId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AuthorityUserRole other = (AuthorityUserRole) obj;
		if (roleId == null) {
			if (other.roleId != null)
				return false;
		} else if (!roleId.equals(other.roleId))
			return false;
		if (roleName == null) {
			if (other.roleName != null)
				return false;
		} else if (!roleName.equals(other.roleName))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		if (user_roleId == null) {
			if (other.user_roleId != null)
				return false;
		} else if (!user_roleId.equals(other.user_roleId))
			return false;
		return true;
	}

	public String getUser_roleId() {
		return user_roleId;
	}

	public void setUser_roleId(String user_roleId) {
		this.user_roleId = user_roleId;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
}
